wandb offline 

CUDA_VISIBLE_DEVICES=4,5,6,7 torchrun --nproc_per_node=4 --master_port=20002 fastchat/train/train_with_template.py \
    --model_name_or_path /home/zhaiyuanzhao/llm/Phi-3-mini-4k-instruct \
    --data_path /home/zhaiyuanzhao/LanguageAgentTreeSearch/webshop/webshop-mcts_RFT_data-iteration1.json \
    --bf16 True \
    --output_dir checkpoints-webshop-Phi3-RFT \
    --num_train_epochs 3 \
    --per_device_train_batch_size 1 \
    --per_device_eval_batch_size 1 \
    --gradient_accumulation_steps 16 \
    --evaluation_strategy "no" \
    --save_strategy "epoch" \
    --save_total_limit 10 \
    --learning_rate 2e-5 \
    --weight_decay 0. \
    --warmup_ratio 0.03 \
    --lr_scheduler_type "cosine" \
    --logging_steps 1 \
    --model_max_length 4096 \
    --fsdp "full_shard auto_wrap" \
    --fsdp_transformer_layer_cls_to_wrap 'Phi3DecoderLayer' \
    --gradient_checkpointing True \
    --lazy_preprocess True \
    --conv_template phi3 \